# -*- encoding: utf-8 -*-
"""
# |=========================|
# |    Coding by Noob_0     |
# | Noob_0-main@outlook.com |
# |=========================|

Terminal for Windows 程序入口

"""
from PyQt5.QtWidgets import QApplication
# from qt_material import apply_stylesheet

from TerminalUIAPINew import MainWindow


def terminalrun(debug: bool = False):
    app = QApplication([])
    if debug:
        mainw = MainWindow(debug=True)
    else:
        mainw = MainWindow()
    # apply_stylesheet(app, theme='dark_teal.xml')
    mainw.show()
    app.exec_()


if __name__ == '__main__':
    terminalrun()
